.header {
  position: relative;
  z-index: 999;
  .line {
    width: 1200px;
    height: 50px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .inner:first-child {
    background:linear-gradient(180deg,rgba(0,0,0,0.17) 0%,rgba(0,0,0,0.01) 100%);
  }

  .inner:last-child {
    background-color: transparent;
  }

  nav {
    display: flex;

    a {
      font-size:14px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(255,255,255,1);
      margin-right: 46px;

      &:hover {
        transition: 0.5s;
        color:rgba(255,255,255,0.8);
      }
    }

    a.active-1 {
      color:rgba(77,147,253,1);
    }

    a.active {
      position: relative;
      font-size:14px;
      font-family:PingFangSC-Semibold;
      font-weight:600;
      color:rgba(255,255,255,1);

      &:after {
        position: absolute;
        left: 50%;
        bottom: -8px;
        content: '';
        width:20px;
        height:4px;
        margin-left: -10px;
        background:rgba(255,255,255,1);
        border-radius:100px 100px 0px 0px;
      }
    }
  }

  h1 {
    width: 98px;
    height: 26px;
    background-image: url('../../images/home/logo.png');
  }

  .right {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .login {
    margin-right: 26px;
    font-size:12px;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(255,255,255,1);

    &:hover {
      transition: 0.5s;
      color:rgba(255,255,255,0.8);
    }
  }

  .register {
    display: inline-block;
    margin-right: 26px;
    width:70px;
    height:24px;
    line-height: 24px;
    text-align: center;
    background:rgba(255,255,255,0.2);
    border-radius:12px;
    font-size:12px;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(255,255,255,1);

    &:hover {
      transition: 0.5s;
      background:rgba(255,255,255,0.4);
    }
  }

  .msg-wrap {
    position: relative;
  }

  .icon-msg {
    display: inline-block;
    width: 12px;
    height: 15px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;

    &:hover {
      transition: 0.5s;
      color:rgba(255,255,255,0.8);
    }
  }

  .dot {
    position: absolute;
    right: 0;
    top: 2px;
    width:4px;
    height:4px;
    background:rgba(255,73,73,1);
    border-radius: 2px;
  }
}

.header-bg {
  .inner:first-child {
    border-bottom: 1px solid rgba(229,229,229,0.4)!important;
  }
  .inner {
    background-color:rgba(27,41,78,1)!important;
  }
}